package io;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class FOSDemo {
    public static void main(String[] args) throws IOException {
        File file=new File("fos.dat");
        FileOutputStream f=new FileOutputStream(file);
        //FileOutputStream f=new FileOutputStream("fos.dat");
//        f.write(1);
//        f.write(2);
        f.write(256);
        System.out.println("写出完毕");
        f.close();
    }
}
